package com.example.service;


import com.example.dao.SetMealDao;
import com.example.domain.message.RedisConstant;
import com.example.domain.pojo.Setmeal;
import com.example.domain.query.QueryPageBean;
import com.example.domain.result.PageResult;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
@Transactional
public class SetMealService  {

    @Autowired
    private SetMealDao setMealDao;



    public List<Setmeal> findAll() { //
       List<Setmeal> setmealList= setMealDao.findAll();
       //为什么查询为空
        System.out.println(setmealList);
        return setmealList;
    }


    public Setmeal findById(Integer id) {//
        System.out.println(id);
        Setmeal setmeal =setMealDao.findById(id);
        System.out.println(setmeal);
        return setmeal;
    }



}

